from django.contrib import admin

# Register your models here.
from comments.models import Comment


@admin.register(Comment)
class CommentAdmin(admin.ModelAdmin):
    list_display = ('id', 'name', 'email', 'created_time')
    # 设置哪些字段可以点击进入编辑界面
    list_display_links = ('id', 'name', 'email')
